//
//  photoCollectionViewCell.m
//  项目一
//
//  Created by nick on 15/7/23.
//  Copyright (c) 2015年 nick. All rights reserved.
//

#import "photoCollectionViewCell.h"
#import "photoScrollView.h"
@implementation photoCollectionViewCell{
    photoScrollView *scroll;
}
- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        scroll = [[photoScrollView alloc]initWithFrame:self.bounds];
        scroll.tag = 1;
        [self.contentView addSubview:scroll];
        
    }
    return self;
}

- (void)setImageUrl:(NSString *)imageUrl{
    _imageUrl = imageUrl;
    [self setNeedsLayout];
}
- (void)layoutSubviews{
    scroll.imageUrl = _imageUrl;
    
}
@end
